package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by TT on 2017/7/31.
 */
@RestController
public class DemoController {

    @Autowired
    private MyAppConfig myWebMyAppConfig;

    @RequestMapping(value = "index", method = RequestMethod.GET)
    @ResponseBody
    public MyAppConfig index() {
        return myWebMyAppConfig;
    }
}
